package com.server.impl;

import com.dao.IMylog;
import com.model.LOG;
import com.server.MylogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MylogServiceImpl implements MylogService {

    @Autowired
    private IMylog iMylog;

    @Override
    public int addLog(LOG myLog) {
        return iMylog.addMylog(myLog);
    }

    @Override
    public LOG getLog(int IPaddress) {
        return iMylog.getMylog(IPaddress);
    }

    @Override
    public int updateMylog(LOG myLog) {
        return iMylog.updateMylog(myLog);
    }

    @Override
    public int deleteMylog(int IPaddress) {
        return iMylog.deleteMylog(IPaddress);
    }

    @Override
    public List<LOG> getAllMylogs(LOG myLog){
        return iMylog.getAllMylogs(myLog);
    }

    @Override
    public LOG getIdAndTime(int IPaddress) {return iMylog.getIdAndTime(IPaddress); }
}
